#ifndef GAMECONTROLLER_H
#define GAMECONTROLLER_H
#include "mainscene.h"
#include "levelscene.h"
#include "gamescene.h"
#include "gameconfig.h"
class GameController
{
public:
    GameController();
    ~GameController();

    //单例
    static GameController *getInstance();
    void initMainScene(Mainscene *mainScene);
    void showMainScene();
    void hideMinaScene();
    void showLevelScene();
    void hideLevelScene();
    void showGameScene(int level);
    void hideGameScene();
    void deleteGameScene();
    void playStartSound();
    void playBackSound();
    void playFlipCoinSound();
    void playWinSound();

private:
    static GameController* gameController;
    Mainscene *mainScene;
    LevelScene *levelScene;
    GameScene *gameScene;
    bool levelSceneGeometryInitialized = false;

};

#endif // GAMECONTROLLER_H
